<template>
<h1>会员信息列表</h1>
<table border="1">
    <thead>
        <tr>
            <td>会员编号</td>
            <td>会员账号</td>
            <td>会员密码</td>
            <td>注册时间</td>
        </tr>
    </thead>
    <tbody>
        <tr v-for="item in info">
            <td>{{item.id}}</td>
            <td>{{item.mname}}</td>
            <td>{{item.mpwd}}</td>
            <td>{{item.mdate.substring(0,10)}}</td>
        </tr>
    </tbody>
</table>
</template>



<script setup lang="ts">
import {onMounted,ref} from 'vue'
import axios from 'axios'

const info=ref([{
    id:'',
    mname:'',
    mpwd:'',
    mdate:''
}])
onMounted(()=>{
    axios.get("https://localhost:7193/api/Meber/MeberLoginShow")
    .then(res=>{
        info.value=res.data
        console.log(info.value)
    })
    .catch(error=>{
        console.log(error);
    })
})




</script>
